package CtrLayer;



public class StatisticsCtr
{
    private static ProductCtr productCtr= new ProductCtr();
    private static StaffCtr staffCtr= new StaffCtr();
    private static OrderCtr orderCtr= new OrderCtr();
    private static CustomerCtr customerCtr= new CustomerCtr();
    
    public StatisticsCtr()
    {
    }

    public int ordersCompletedTime(String startDate,String endDate)
    {return orderCtr.ordersCompletedTime(startDate,endDate);}
    public int ordersPendingTime(String startDate,String endDate)
    {return orderCtr.ordersPendingTime(startDate,endDate);}
    public int ordersCanceledTime(String startDate,String endDate)
    {return orderCtr.ordersCanceledTime(startDate,endDate);}
    public int ordersCustCompleted(int id)
    {return orderCtr.ordersCustCompleted(id);}
    public void pendingOrders()
    {orderCtr.pendingOrders();}
    public void mostSales()
    {print("The employee with most sales is " +  staffCtr.mostSales().getName() + ".");}
}
